<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
%>
<!--  2010-10-12 忘记密码 -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>忘记密码</title>
	<link href="<%=path %>/css/index_css.css" rel="stylesheet" type="text/css" />
  </head>
  
  <body onload="try{document.getElementById('answer').focus();}catch(e){}">
    <table width="760" align="center"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center"><img src="<%=path %>/images/workroom_getback.gif"></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="center">
          <c:choose>
            <c:when test="${!empty requestScope.UserInfo}">
              <form action="<%=path %>/checkAnswerUserAction.action" method="post" name="passwordForm">   
		        <table width="100%" border="0" cellpadding="2" cellspacing="2" >
		            <tr class="f12"> 
		              <td height="30" align="right"><strong>请回答这个问题：</strong></td>
		              <td height="30">
		            <c:choose>
		              <c:when test="${not empty requestScope.userInfo.question}">
		                <strong><font size=+1>${requestScope.userInfo.question }</font></strong>
		              </c:when>
		              <c:otherwise><font color="#CCCCCC">您还没有设置问题。</font></c:otherwise>
		            </c:choose>
		            </td>
		            </tr>
		            <tr class="f12"> 
		              <td width="25%" height="30" align="right"><strong>您的答案：</strong></td>
		              <td width="75%" height="30"><input name="user.userId" type="hidden" value="${requestScope.userInfo.UserId }"><input name="user.answer" type="text" id="answer" size="30"></td>
		            </tr>
		            <tr class="f12"> 
		              <td height="30">&nbsp;</td>
		              <td height="30"><input type="submit" name="Submit" value="下一步" > </td>
		            </tr>
		           </table>
		          </form>
            </c:when>
            <c:otherwise>
               	抱歉，查询用户信息出错了，可能用户不存在<br><br><a href='javascript:history.go(-1)'>返回上一页</a>
            </c:otherwise>
          </c:choose>
        </td>
      </tr>      
    </table>     
  </body>
</html>
